package com.sj.tensquare.web.feign;

import com.sj.common.utils.R;
import com.sj.tensquare.user.entity.AdminEntity;
import com.sj.tensquare.user.entity.UserEntity;
import org.bouncycastle.cert.ocsp.RespData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author sj
 * @date 2020/12/9 - 11:15
 */
@FeignClient("tensquare-user")
public interface UserFeign {
    //保存用户详情信息
    @PostMapping(path = "user/admin/save",consumes = "application/json", produces = "application/json")
    public R save(@RequestBody AdminEntity admin);

    //保存用户的登陆基本信息
    @RequestMapping(path = "/user/user/save",consumes = "application/json", produces = "application/json")
    public R save(@RequestBody UserEntity user);

}
